﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class LogMsg : MonoBehaviour {
    EginUser user = EginUser.Instance;
    public UILabel logMsg;
	// Use this for initialization
	void Start () {
        logMsg.text = user.logMsg;
        StartCoroutine(DesEvent(1.0F));
    }
    IEnumerator DesEvent(float waitTime)
    {
        yield return new WaitForSeconds(waitTime);
        Destroy(gameObject);
    }

}
